package com.timoon.webcomponent.utility.info;

import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.spring.injection.annot.SpringBean;

import com.timoon.sample.dao.model.InfoMedium;

/**
 *<p></p>
 *<p></p>
 *<p>Copyright:Copyright(c)2013</p>
 *<p>Company:timoon</p>
 *@author 付乐天
 *@version 1.0 */

public class ContactUsPanel extends Panel {

	@SpringBean(name="sample.InfoMedium")
	private ContactUsService contactUsService;
	
	public ContactUsPanel(String id) {
		super(id);
		// TODO Auto-generated constructor stub
		
		renderPanel();
	}

	private void renderPanel() {
		// TODO Auto-generated method stub
		
		InfoMedium im=this.contactUsService.getInfoMediumById(1);
		add(new Label("wk_contanctus",im.getValue()));
	}

}
